package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblHrTraituationDao;
import com.sinosoft.tcmneim.dataObject.TblHrTraituation;
import com.sinosoft.tcmneim.service.TblHrTraituationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblHrTraituationServiceImpl implements TblHrTraituationService {

    @Resource
    private TblHrTraituationDao tblHrTraituationDao;


    @Override
    public List<TblHrTraituation> list() {
        return tblHrTraituationDao.list();
    }

    @Override
    public List<TblHrTraituation> selectByItemCode(String itemCode) {
        return tblHrTraituationDao.selectByItemCode(itemCode);
    }

    @Override
    public int insert(TblHrTraituation tblHrTraituation) {
        return tblHrTraituationDao.insert(tblHrTraituation);
    }

    @Override
    public int updated(TblHrTraituation tblHrTraituation) {
        return tblHrTraituationDao.updated(tblHrTraituation);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblHrTraituationDao.deleteByItemCode(itemCode);
    }
}
